﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Commerce/Views/Shared/Backend.Master"
    Inherits="System.Web.Mvc.ViewPage<Kooboo.Commerce.Promotions.Cashback.Promotion_Cashback>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%: "Cashback".Localize()%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3 class="title">
        <%: "Settings".Localize()%></h3>
    <ul class="step clearfix">
        <li><a href="#" class="prev-action-link">
            <%: "Basic".Localize() %></a></li>
        <li class="separator">&gt;</li>
        <li class="current">
            <%: "Settings".Localize() %></li>
    </ul>
    <div class="step-content">
        <div class="common-form">
            <% using (Html.BeginForm())
               { %>
            <fieldset>
                <legend></legend>
                <table>
                    <tbody>
                        <tr>
                            <th>
                                <label for="">
                                    <%: "Total".Localize()%></label>
                                <a class="tooltip-link"></a><span class="hide">
                                    <%: "total=subtotal-totaldiscount".Localize()%></span>
                            </th>
                            <td>
                                <%: Html.HiddenFor(i=>i.PromotionRuleId) %>
                                <label for="FromTotal">
                                    <%: "Form".Localize() %></label>
                                <%: Html.TextBoxFor(i => i.FromTotal, new { @class="short" })%>
                                <label for="ToTotal">
                                    <%: "To".Localize() %></label>
                                <%: Html.TextBoxFor(i => i.ToTotal, new { @class = "short" })%>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <label>
                                    <%:"Return anount".Localize() %></label>
                            </th>
                            <td>
                                <%: Html.TextBoxFor(i=>i.ReturnAmount) %>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </fieldset>
            <p class="buttons">
                <input type="submit" value='<%: "« Previous".Localize() %>' class="button prev" />
                <input type="submit" value='<%: "Finish".Localize() %>' class="button finish" /></p>
            <input id="next" name="next" type="hidden" />
            <%} %>
        </div>
    </div>
</asp:Content>
<asp:Content ID="ScriptContent" ContentPlaceHolderID="ScriptContent" runat="server">
    <%using (var loader = ScriptLoader.RegisterInstance(Kooboo.Commerce.Configuration.ScriptFolder))
      {
          loader.Require("cashback.index.js");
      } %>
</asp:Content>
